package cloud.keveri.springboot.starter.chat4j;

import cloud.keveri.chat4j.api.AbstractChatBlender;
import cloud.keveri.chat4j.api.ChatConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static cloud.keveri.chat4j.api.def.Const.Chat4j_Prefix;

/**
 * <p>
 * 作者：沈自在
 **/
@Configuration
public class ChatAutoConfiguration {

    /**
     * 主配置
     */
    @Bean
    @ConfigurationProperties(prefix = Chat4j_Prefix)
    public ChatConfig chatConfig() {
        return AbstractChatBlender.getChatConfig();
    }
}
